import request from "@/utils/request.js";

const api_prefix = "/common";

export function upload(data) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/upload`,
    method: "POST",
    data: data,
    headers: {
      "Content-type": "multipart/form-data",
    }
  });
}

export function Fillupload(data) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/upload`,
    method: "POST",
    data: data
  });
}